package com.ruoyi.web.core;

/**
 * 打印颜色编码 工具
 *
 * @author Jyl
 */
public class ColorfulUtil
{
    // ANSI 转义码
    public static final String RESET = "\u001B[0m";
    public static final String BLACK = "\u001B[30m";
    public static final String RED = "\u001B[31m";
    public static final String GREEN = "\u001B[32m";
    public static final String YELLOW = "\u001B[33m";
    public static final String BLUE = "\u001B[34m";
    public static final String PURPLE = "\u001B[35m";
    public static final String CYAN = "\u001B[36m";
    public static final String WHITE = "\u001B[37m";

    public static void main(String[] args)
    {
        System.out.println(RED + "This is red text!" + RESET);
        System.out.println(GREEN + "This is green text!" + RESET);
        System.out.println(BLUE + "This is blue text!" + RESET);
        // ... 其他颜色
    }
}